package com.neugh.service.impl;

import com.alibaba.fastjson.JSON;
import com.neugh.entity.House;
import com.neugh.mapper.HouseMapper;
import com.neugh.service.HouseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.SolrDocumentList;
import org.apache.solr.common.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.solr.core.SolrTemplate;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class HouseServiceImpl extends ServiceImpl<HouseMapper, House> implements HouseService {

    @Override
    public List<House> seleHouse(House house) {
        return this.baseMapper.seleHouse(house);
    }

    @Override
    public House seleHouseById(Integer houseId) {
        return this.baseMapper.seleHouseById(houseId);
    }

    @Override
    public List<House> houseByTile(String houseTitle, String houseType, String houseTurn) {
        return this.baseMapper.houseByTile(houseTitle,houseType,houseTurn);
    }


}
